const KoaRouter = require('@koa/router');
const { verifyAuth } = require('../middleware/login.middleware');
const { create, list } = require('../controller/label.controller');
// 1. 创建login路由
const labelRouter = new KoaRouter({ prefix: '/label' });

// 接口
// 创建标签
labelRouter.post('/', verifyAuth, create);
// 获取标签列表
labelRouter.get('/', list)

module.exports = labelRouter